package bomberman.runable;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


/**
 * 线程池，优化多线程
 * 2016年9月27日09:53:54
 * 
 * 参考网址：
 * http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f73260878e482a958448e435061e5a30bee565784b58d1c27c651ced545de1f13679370037b7ec92ce1583afd7756fde286c2358d55612a20edebf5153b537e05bfede68f0bb8025e3afc5a5d5&p=8739840c87904ead0ebd9b7d0d149d&newp=8d74c64ad4934eac58efc527585fa5231610db2151d6d201298ffe0cc4241a1a1a3aecbf26231301d9c17a6603ac4a5cedfb3179330834f1f689df08d2ecce7e&user=baidu&fm=sc&query=java+%CF%DF%B3%CC%B3%D8&qid=87e4c6e9000155fb&p1=2
 */
public class MyRunableThreadPool {

	private static ExecutorService executor;
	
	public static ExecutorService getExecutorService(){
		if(executor == null){
			executor = Executors.newFixedThreadPool(Integer.MAX_VALUE);
		}
		return executor;
	}

	
}
